import axios from "../utils/request"
// 声音控制接口 => 语音转文字
export const uploadAudioService = (audioBlob: Blob) => {
    // 创建FormData对象
    const formData = new FormData()
    formData.append('vocieFile', audioBlob)
    return axios.post('/desktop/voiceControl', formData, {
        headers: {
            'Content-Type': 'multipart/form-data',  // 指定表单数据的类型
        },
    })
}

